home *** CD-ROM | disk | FTP | other *** search
- Path: softsite.co.at!wsog
- Date: 12 Feb 1996 08:43:00 +0100
- From: wsog@softsite.co.at (Walter Sommergruber)
- Newsgroups: comp.lang.c++
- Message-ID: <62hjVYYrnTB@softsite.co.at>
- References: <4ffeqa$pjh@brtph500.bnr.ca> <4flcj7$66h@trance.isys.net>
- Subject: Re: How to the size of a file in C ?
- X-Newsreader: XP v3.02
- X-Charset: ISO-8859-1
- Organization: Sommergruber Software & Dienstleistungen
-
- Henrik (Henrik.Stellmann@Hamburg.NetSurf.DE) wrote on 11.02.96
- about "Re: How to the size of a file in C ?":
-
- > Gilbert Banks <gilbertb@bnr.ca> wrote:
- > >How do I get the size of a file in C UNIX-based? I tried sizeof <file>,
- > >but
- >
- > try this:
- [snip]
-
- > FILE * File = fopen(FileName)
-
- 1. fopen requires a second parameter
- 2. What if you don't have the right to open the file ?
-
- There is no portable way to do this (of course there are several
- system dependend ways: fstat(), stat(), ....)
-
- --- Take a look at ...
- Walter Sommergruber The Software Site
- email: wsog@softsite.co.at http://www.softsite.co.at/softsite/
-